﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;

namespace BLL
{
    public class RawsInfoManager
    {
        //GridView展示
        public static List<RawsInfo> GetAll()
        {
            return RawsInfoServices.Select();
        }
        //查询
        public static List<RawsInfo> GetAllMessage(string name, string address, string supplier)
        {
            return RawsInfoServices.AllSelect(name, address, supplier);
        }
        //新增
        public static RawsInfo Add(string RawMaterial, string RawsAddress, string Supplier, double Unitprice, string unit, string Introduce, string Remark, string states, string people, DateTime times)
        {
            return RawsInfoServices.AddInfo(RawMaterial, RawsAddress, Supplier, Unitprice, unit, Introduce, Remark, states, people, times);
        }
    }
}
